package com.rykj.energy.database.pojo.vo;

import com.rykj.energy.common.utils.Tree;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author GanLu
 * @date 2020-04-18 11:45
 */
@Data
@ApiModel(value="组织VO对象", description="包含组织和负责人信息")
public class OrganizationVO implements Serializable {

    private static final long serialVersionUID = -6569197853089533401L;
    @ApiModelProperty(value = "组织ID")
    private Integer id;

    @ApiModelProperty(value = "组织名称")
    private String name;

    @ApiModelProperty(value = "上级组织")
    private Integer parentId;

    @ApiModelProperty(value = "上级组织名称")
    private String parentName;

    @ApiModelProperty(value = "负责人id")
    private Integer chargerId;

    @ApiModelProperty(value = "创建人id")
    private Integer createrId;

    @ApiModelProperty(value = "序号")
    private Integer seq;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "组织类型1 公司,2加油站")
    private Integer orgType;

    @ApiModelProperty(value = "全称")
    private String fullName;

    private String batchNumber;

    @ApiModelProperty(value = "组织编号")
    private String orgNum;

    @ApiModelProperty(value = "负责人姓名")
    private String principalName;

    @ApiModelProperty(value = "联系电话")
    private String telephone;

    @ApiModelProperty(value = "经度/x")
    private String lat;

    @ApiModelProperty(value = "纬度/y")
    private String lng;

    @ApiModelProperty(value = "区域摄像头")
    private List<DeviceVo> cameras;

    @ApiModelProperty(value = "下级组织")
    private List<OrganizationVO> children;


/*    @Override
    public Integer getTreeId() {
        return id;
    }

    @Override
    public Integer getTreePid() {
        return parentId;
    }

    @Override
    public List<OrganizationVO> getTreeChildren() {
        return children;
    }

    @Override
    public void setTreeChildren(List<OrganizationVO> children) {
        this.children = children;
    }*/
}
